package com.example.hilt

import android.app.Application
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import com.example.mydemoapp.R
import com.example.userprofile.UserProfileViewModel
import dagger.hilt.android.AndroidEntryPoint
import dagger.hilt.android.HiltAndroidApp

//@HiltAndroidApp
class MyApplication : Application()

//@AndroidEntryPoint
class HomeActivity: AppCompatActivity(){
    private fun openFragment(fragment: Fragment) =
        supportFragmentManager.beginTransaction().apply {
            replace(R.id.container, fragment)
            addToBackStack(null)
            commit()
        }
}

//@AndroidEntryPoint
class WinnersFragment: Fragment() {
    private val viewModel: UserProfileViewModel by viewModels()
}